﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessObjects.BO_GetObjects;

public partial class Controls_ListNews : Base_Controls
{
    protected void Page_Load(object sender, EventArgs e)
    {
        base.setField(Convert.ToInt32(this.Attributes["ID"]));
        if (!IsPostBack)
        {
            Cid = getRequest("category_id", -1);
            if (Lang)
                ctTitle.InnerText = BO_portal_categories.Search(Cid).Rows[0]["FULL_CATEGORY_NAME_ENG"].ToString();
            else
                ctTitle.InnerText = BO_portal_categories.Search(Cid).Rows[0]["FULL_CATEGORY_NAME"].ToString();
            base.bindRepeater(rptData, BO_portal_articles.SelectLangByCategory(base.Cur_page, base.PSize, Cid, "ARTICLES", base.Lang));
        }
    }
}